]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove unnecessary unmapped handler
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Aug 2021 22:07:17 +0000 (00:07 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 16 Aug 2021 21:28:22 +0000 (21:28 +0000)
Since commit 35494f5d08, all menus are closed when their source
gets unmapped.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

js/ui/appDisplay.js

index a3e60b834f3bdef080f56ae1dd28375f8d89d490..950979647b875e1b8e634e27edd698976ae36c46 100644 (file)
@@ -3430,16 +3430,6 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
 
         this.actor.add_style_class_name('app-well-menu');
 
-        // Chain our visibility and lifecycle to that of the source
-        this._sourceMappedId = source.connect('notify::mapped', () => {
-            if (!source.mapped)
-                this.close();
-        });
-        source.connect('destroy', () => {
-            source.disconnect(this._sourceMappedId);
-            this.destroy();
-        });
-
         Main.uiGroup.add_actor(this.actor);
     }